package cn.com.dbappsecurity.controller;

import javax.servlet.http.HttpServletResponse;
import cn.com.dbappsecurity.frame.annotations.Action;
import cn.com.dbappsecurity.frame.annotations.Controller;
import cn.com.dbappsecurity.service.ISystem;
import cn.com.dbappsecurity.service.impl.SystemImpl;

@Controller("system")
public class SystemController extends BaseController{

	/*
	 * service实例获取
	 */
	private ISystem systemService = getService(SystemImpl.class);
	
	@Action
	public boolean changeSkin(HttpServletResponse response,String skin) throws Exception{
		systemService.changeSkin(response,skin);
		return true;
	}
	
	@Action
	public boolean changeLanguage(HttpServletResponse response,String language) throws Exception{
		systemService.changeLanguage(response,language);
		return true;
	}
	
}
